class Add_oil2FormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Add_oil2Table'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Add_oil2sApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Add_oil2FormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Add_oil2sAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "add_oil2s": "search"

                
myapp.addInitializer -> 
    myapp.Add_oil2s_app = new Add_oil2sApp()
    myapp.Add_oil2s_app.router = new Add_oil2sAppRouter controller: myapp.Add_oil2s_app

myapp.vent.trigger("routing:started")
